package com.zhentao.tot.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户关注信息对象 ap_user_follow
 * 
 * @author ruoyi
 * @date 2025-04-18
 */
public class ApUserFollow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Integer userId;

    /** 关注作者ID */
    @Excel(name = "关注作者ID")
    private Integer followId;

    /** 作者昵称 */
    @Excel(name = "作者昵称")
    private String followName;

    /** 关注度 0 偶尔感兴趣 1一般 2经常 3 高度 */
    @Excel(name = "关注度 0 偶尔感兴趣 1一般 2经常 3 高度")
    private Integer level;

    /** 是否动态通知 */
    @Excel(name = "是否动态通知")
    private Integer isNotice;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }

    public void setFollowId(Integer followId) 
    {
        this.followId = followId;
    }

    public Integer getFollowId() 
    {
        return followId;
    }

    public void setFollowName(String followName) 
    {
        this.followName = followName;
    }

    public String getFollowName() 
    {
        return followName;
    }

    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }

    public void setIsNotice(Integer isNotice) 
    {
        this.isNotice = isNotice;
    }

    public Integer getIsNotice() 
    {
        return isNotice;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("followId", getFollowId())
            .append("followName", getFollowName())
            .append("level", getLevel())
            .append("isNotice", getIsNotice())
            .append("createdTime", getCreatedTime())
            .toString();
    }
}
